#define _CRT_SECURE_NO_WARNINGS 1
#include"sl.h"

int main()
{
	SListNode* plist = NULL;

	/*SListPushBack(&plist, 1);
	SListPushBack(&plist, 2);
	SListPushBack(&plist, 3);
	SListPushBack(&plist, 4);*/

	SListPushFront(&plist, 1);
	SListPushFront(&plist, 2);
	SListPushFront(&plist, 3);
	SListPushFront(&plist, 4);

	/*SListPopBack(&plist);
	SListPopBack(&plist);*/

	//SListPopFront(&plist);
	//SListPopFront(&plist);
    
	/*SListNode* pos=SListFind(plist, 1);
	SListInsertAfter(pos, 1);*/

	SListNode* pos = SListFind(plist, 4);
	SListEraseAfter(pos);

	SListPrint(plist);
	SListDestroy(plist);
	return 0;
}